using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Stratman.Web.VSTS
{
    /// <summary>
    /// Configuration element that captures information for various types of time that are 
    /// processed for this TFS project.
    /// </summary>
    public class TimeAmount : ConfigurationElement
    {
        /// <summary>
        /// Text label for this time type.
        /// </summary>
        [ConfigurationProperty("label", IsRequired = true, IsKey = true)]
        public string Label
        {
            get
            {
                return (string)base["label"];
            }
        }

        /// <summary>
        /// Field name for the number of completed hours.
        /// </summary>
        [ConfigurationProperty("completedHoursFieldName", IsRequired = true)]
        public string CompletedHoursFieldName
        {
            get
            {
                return (string)base["completedHoursFieldName"];
            }
        }

        /// <summary>
        /// Field name for the number of remaining hours.
        /// </summary>
        [ConfigurationProperty("remainingHoursFieldName", IsRequired = true)]
        public string RemainingHoursFieldName
        {
            get
            {
                return (string)base["remainingHoursFieldName"];
            }
        }
    }
}
